home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93c.txt
/
000050_icon-group-sender _Sun Sep 12 18:09:02 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1994-02-02
|
1KB
Received: from owl.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Mon, 13 Sep 1993 07:35:36 MST
Received: by owl.cs.arizona.edu; Mon, 13 Sep 1993 07:35:35 MST
Date: 12 Sep 93 18:09:02 GMT
From: agate!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!ellis!goer@ucbvax.Berkeley.EDU (Richard L. Goerwitz)
Organization: University of Chicago
Subject: Re: another newbie question (simple)
Message-Id: <1993Sep12.180902.16530@midway.uchicago.edu>
References: <26um1sINNjvj@dns1.NMSU.Edu>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
cymorg@acca.nmsu.edu (Tanis Half-Elven) writes:
>I would like to somehow take a string s, and rewrite it, say,
>as a new string with each letter being the letter following
>the one in the original word....ie:
>
>hello, becomes: ifmmp
maybe (assuming no &letters, and assuming z wraps around to a):
procedure rotate(s)
static letters, newbies
initial {
letters := &ucase || &lcase
newbies := &ucase[2:0] || "A" || &lcase[2:0] || "a"
}
return map(s, letters, newbies)
end
This is just off the top of my head, and isn't tested.
--
-Richard L. Goerwitz goer%midway@uchicago.bitnet
goer@midway.uchicago.edu rutgers!oddjob!ellis!goer